package com.baichang.taoshunda.entity;

import com.baichang.framework.annotation.jdbc.Table;
import com.baichang.framework.annotation.jdbc.Id;
import com.baichang.framework.entity.BaseEntity;

import java.util.Date;
import java.math.BigDecimal;

/**
 * 功能描述:
 *
 * @param: 养老金
 * @return:
 * @auther: wsl
 * @date: 2018/11/30 9:08
 */

@Table(name = "t_pension")
public class Pension extends BaseEntity {

    private Integer id;
    /**
     * 来源名称  商品名称、话费充值
     **/
    private String name;
    /**
     * 来源类型  1订单2话费充值
     **/
    private Integer type;
    /**
     * 商品规格、充值金额
     **/
    private String value;
    private Date created;
    /**
     * 用户编号
     **/
    private Integer userId;
    /**
     * 订单号
     **/
    private String orderNumber;
    /**
     * 补贴金额
     **/
    private BigDecimal money;
    /**
     * 消费金额
     **/
    private BigDecimal monetary;
    /**
     * 养老金总金额（记录每笔金额变化浮动显示）
     **/
    private BigDecimal pension;
    /**
     * 红包金额
     **/
    private BigDecimal redPacket;
    /**
     * 支付方式 等同于订单支付方式
     **/
    private Integer payType;
    /**
     * 收货地址
     **/
    private String address;
    /**
     * 商家编号
     **/
    private Integer companyId;
    /**
     * 商家编号
     **/
    private Integer goodsId;


    @Id
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 来源名称  商品名称、话费充值
     **/
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 来源类型  1订单2话费充值
     **/
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 商品规格、充值金额
     **/
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * 用户编号
     **/
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 订单号
     **/
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    /**
     * 补贴金额
     **/
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 消费金额
     **/
    public BigDecimal getMonetary() {
        return monetary;
    }

    public void setMonetary(BigDecimal monetary) {
        this.monetary = monetary;
    }

    /**
     * 养老金总金额（记录每笔金额变化浮动显示）
     **/
    public BigDecimal getPension() {
        return pension;
    }

    public void setPension(BigDecimal pension) {
        this.pension = pension;
    }

    public BigDecimal getRedPacket() {
        return redPacket;
    }

    public void setRedPacket(BigDecimal redPacket) {
        this.redPacket = redPacket;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
}